package aaa.schedule;


public class SimpleScheduleUpdater extends ScheduleUpdater {

	public SimpleScheduleUpdater() {
		super(null) ;
	}// SimpleScheduleUpdater()

	@Override
	protected void compareS(Schedule oldS, Schedule newS) {
		this.delete.ensureCapacity(oldS.getNLessons()) ;
		for(Lesson l : oldS) {
			this.delete.add(l) ;
		}// for
		this.insert.ensureCapacity(newS.getNLessons()) ;
		for(Lesson l : newS) {
			this.insert.add(l) ;
		}// for
	}// compareS(Schedule, Schedule) 

}// class SimpleScheduleUpdater